
function StaticExpires(){

}

StaticExpires.setCacheExpires = function(req, res, next){
    return function(req, res, next){
        if(/.css|.js|.jpg/.test(req.url)){
            res.setHeader('cache-control', 'public, max-age=2592001');//30天
        }
        next();
    }
}

module.exports = StaticExpires;